package cn.edu.nuc.ssm.service;

import cn.edu.nuc.ssm.dto.EverySumCaiWuDto;
import cn.edu.nuc.ssm.dto.SumCaiWuDto;
import cn.edu.nuc.ssm.entity.Account;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/4/8.
 */
public interface AccountService {

    public Map<String,List<Account>> listUserAcount(int uid);

    public SumCaiWuDto sumCaiWu(int uid);

    /**
     * 统计每一类用户的账务信息
     * @param uid 用户id
     * @return list
     */
    public  List<EverySumCaiWuDto> sumEverySumCaiWuDto(int uid);

    /**
     * 通过Id查找一个账户
     * @param id
     * @return
     */
    Account findbyId(int id);

    /**
     *初始化用户的开始的默认账户
     * @param uid 用户uid
     * @return
     */
    int initUserAccount(int uid);

    void updateYuE(Account account);



}
